package com.yu1996.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yu1996.common.utils.PageUtils;
import com.yu1996.gulimall.product.entity.SpuInfoEntity;

import com.yu1996.gulimall.product.vo.SpuSaveVo;
import java.util.Map;

/**
 * spu信息
 *
 * @author yu
 * @email 1798121567@qq.com
 * @date 2021-08-04 17:31:00
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

  PageUtils queryPage(Map<String, Object> params);

  /**
   * 保存spu的全部信息
   *
   * @param vo
   */
  void saveSpuInfo(SpuSaveVo vo);

  // spu管理中的检索
  PageUtils queryPageByCondition(Map<String, Object> params);

  /**
   * 商品上架
   * @param spuId
   */
  void up(Long spuId);
}
